package com.inspur.zhangpeixia.goods.service.impl;

import com.inspur.zhangpeixia.goods.dao.CategoryDao;
import com.inspur.zhangpeixia.goods.dao.GoodDao;
import com.inspur.zhangpeixia.goods.entity.Good;
import com.inspur.zhangpeixia.goods.service.GoodService;

import java.awt.*;
import java.util.List;
public class GoodServiceImpl implements GoodService {
    private GoodDao goodDao = new GoodDao();

    @Override
    public List<Good> listGoods(String kw) {
        return goodDao.listGoods(kw);
    }

    @Override
    public int deleteGood(int id) {
        return goodDao.deleteGood(id);
    }

    @Override
    public int updateGood(Good good) {
         return goodDao.updateGood(good);
    }

    @Override
    public int addGood(Good good) {
       return goodDao.addGood(good);
    }
}
